//Encoding：UTF-8
public class RobotController : PlayerBase, IPlayer
{
    public RobotController(int id)
    {
        playerID = id;
    }

    private int AISelectPai()
    {
        //机器人决策出哪张牌
        return 0;
    }

    public void AllowAction(bool playPai, bool chi, bool peng, bool gang, bool anGang, bool jiaGang, bool ting, bool hu, bool ziMo, bool skip)
    {
        action = Action.Non;
        //机器人决策
        if (skip)
            action = Action.Skip;
        else if (playPai)
            action = Action.PlayPai;
    }

    public bool PlayPai()
    {
        base.PlayPai(hand[AISelectPai()]);
        return true;
    }
}
